r<template>
	<view class="content" :style="{'backgroundImage': 'url('+ coverImgUrl +')'}">
		<view class="left">
			<image :src="coverImgUrl"></image>
		</view>
		<view class="right">
			<h2>{{name}}</h2>
			<view class="artist" @click="userinfo">
				<view class="img">
					<image :src="avatarUrl"></image>
				</view>
				<text>{{nickname}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:['name','coverImgUrl','avatarUrl','nickname'],
		methods:{
			userinfo(){
				this.$emit('userinfo')
			}
		},
		data() {
			return {
				
			}
		}
	}
</script>

<style lang="scss">
	.content{
		//margin-top: 20rpx;
		width: 100%;
		height: 372rpx;
		//background-color: green;
		background-repeat: no-repeat;
		background-size: cover;
		background-position: 50%;
		display: flex;
		justify-content: space-around;
		align-items: center;
		.left{
			width: 252rpx;
			height: 252rpx;
			//background-color: yellow;
			image{
				width: 100%;
				height: 100%;
			}
		}
		.right{
			height: 252rpx;
			width: 416rpx;
			//background-color: blue;
			h2{
				font-size: 24rpx;
				font-weight: 400;
				color: #fefefe;
			}
			.artist{
				margin-top: 40rpx;
				display: flex;
				align-items: center;
				.img{
					width: 60rpx;
					height: 60rpx;
					margin-right: 10rpx;
					image{
						width: 100%;
						height: 100%;
						border-radius: 400rpx;
					}
				}
				text{
					color: hsla(0,0%,100%,.7);
					font-size: 24rpx;
				}
			}
		}
	}
</style>
